package com.example.hms.controller;

import com.example.hms.entity.Customer;
import com.example.hms.entity.ReserveRecords;
import com.example.hms.service.ReserveRecordsService;
import com.example.hms.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/reserveRecords")
public class ReserveRecordsController {
    @Resource
    private ReserveRecordsService reserveRecordsService;

    @RequestMapping(value = "selectAllReserveRecords", method = RequestMethod.GET)
    public Result selectAllReserveRecords(String roomNumber,String customerName,String identificationCard) {
        return reserveRecordsService.selectAllReserveRecords(roomNumber, customerName, identificationCard);
    }
}
